tcpip architecture design and implementation in linux by Unknown

tcpip architecture design and implementation in linux by Unknown

Author:Unknown
Language: eng
Format: epub
Published: 2014-03-30T13:29:39+00:00


KEEPALIVE TIMER

355

cs 10.29a. tcp_keepalive_timer() .

www.it-ebooks.info

356

TCP TIMERS

cs 10.29b. tcp_keepalive_timer() ( continued ).

Get the probe interval by calling keepalive_intvl_when() . In the case where the

probe interval was not transmitted successfully, we need to send it at the earliest.

So, the expiry time for the keepalive timer is reduced to

TCP_RESOURCE_

PROBE_INTERVAL at line 631, because we are not able to transmit because of

lack of resources. Next we call tcp_mem_reclaim() to reclaim some memory. We do

this here because if our connection has consumed its quanta of memory allocated,

the next processing of the incoming segment will take it to the slow path. So, we do

this check in advance here. Next we call tcp_reset_keepalive_timer() at line 642 to

reset the keepalive probe timer to whatever expiry time we have calculated above.

We release the socket lock and leave.

10.6 SYN - ACK TIMER

There is a timer maintained by Linux to manage connection requests that are not

being accepted for a given period of time. The entire idea of having this timer is

that if we are not able to accept more connections (accept queue is full) because

the application is not able to get CPU or it is busy doing something else, we need

to manage the connection request. There are two main cases where connection

requests need to be managed:

1. Established connections are not being accepted because the accept queue is

full and the application is not accepting new connections.

2. We don ’ t get ACK for the SYN - ACK we sent; that is, the third step in the

three - way handshake is not completed.

10.6.1 When Is the SYN - ACK Timer Activated?

The timer is activated when we get a connection request and there is no pending

connection request in the listening socket ’ s SYN queue to be processed. lopt → qlen

is the counter that is incremented by 1 whenever a new connection requested arrives

www.it-ebooks.info



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Popular ebooks
Whisky: Malt Whiskies of Scotland (Collins Little Books) by dominic roskrow(73919)
What's Done in Darkness by Kayla Perrin(26959)
The Ultimate Python Exercise Book: 700 Practical Exercises for Beginners with Quiz Questions by Copy(20859)
De Souza H. Master the Age of Artificial Intelligences. The Basic Guide...2024 by Unknown(20612)
D:\Jan\FTP\HOL\Work\Alien Breed - Tower Assault CD32 Alien Breed II - The Horror Continues Manual 1.jpg by PDFCreator(20538)
The Fifty Shades Trilogy & Grey by E L James(19460)
Shot Through the Heart: DI Grace Fisher 2 by Isabelle Grey(19381)
Shot Through the Heart by Mercy Celeste(19242)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 10 by Isuna Hasekura and Jyuu Ayakura(17388)
Python GUI Applications using PyQt5 : The hands-on guide to build apps with Python by Verdugo Leire(17356)
Peren F. Statistics for Business and Economics...Essential Formulas 3ed 2025 by Unknown(17187)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 03 by Isuna Hasekura and Jyuu Ayakura & Jyuu Ayakura(17099)
Wolf & Parchment: New Theory Spice & Wolf, Vol. 01 by Isuna Hasekura and Jyuu Ayakura & Jyuu Ayakura(16713)
The Subtle Art of Not Giving a F*ck by Mark Manson(14831)
The 3rd Cycle of the Betrayed Series Collection: Extremely Controversial Historical Thrillers (Betrayed Series Boxed set) by McCray Carolyn(14443)
Stepbrother Stories 2 - 21 Taboo Story Collection (Brother Sister Stepbrother Stepsister Taboo Pseudo Incest Family Virgin Creampie Pregnant Forced Pregnancy Breeding) by Roxi Harding(14219)
Cozy crochet hats: 7 Stylish and Beginner-Friendly Patterns from Baby Beanies to Trendy Bucket Hats by Vanilla Lazy(13504)
Scorched Earth by Nick Kyme(13096)
Reichel W. Numerical methods for Electrical Engineering, Meteorology,...2022 by Unknown(12980)
Drei Generationen auf dem Jakobsweg by Stein Pia(11259)